<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <label for=""> 篮球</label>
      <input type="checkbox" name="" id="" value="1" v-model="hobbies" />
      <label for=""> rap</label>
      <input type="checkbox" name="" id="" value="2" v-model="hobbies" />
      <label for=""> 唱跳</label>
      <input type="checkbox" name="" id="" value="3" v-model="hobbies" />
    </div>
    <script src="./vue.js"></script>
    <script>
      var vm = new Vue({
        el: "#app",
        data: {
          hobbies:[1,2,3]
        },
        methods: {},
      });
    </script>
  </body>
</html>
